Page({
  data: {
    info: {
      id: '2202220023',
      account: '微信',
      nickname: '一笑泯恩仇',
      gender: 1, //1男 0女，
      date: '',
    },
  },
  onLoad: function (options) {},
  // 切换性别
  _genderChange(e) {
    let id = e.target.dataset.id
    console.log(id)

    this.setData({ 'info.gender': id })
  },
  // 选择日期
  _bindDateChange(e) {
    let date = e.detail.value
    this.setData({
      'info.date': date,
    })
  },
})
